package tuvienna.jade;

import java.util.Random;

/** 
 * Since all agent may be concurrent, and created at the same time
 * they may get the same seed. Thus, use this as a source of randomness.
 *
 */
public class CentralRandom {
	
	private static Random random = new Random(12345);
	
	public static synchronized double nextDouble() {
		return random.nextDouble();
	}
	
	public static synchronized int nextInt(int n) {
		return random.nextInt(n);
	}
	
}